const {
  DataTypes
} = require('sequelize');

module.exports = sequelize => {
  const attributes = {
    Id: {
      type: DataTypes.INTEGER,
      allowNull: false,
      defaultValue: null,
      primaryKey: true,
      autoIncrement: true,
      comment: null,
      field: "Id"
    },
    IsInitialized: {
      type: nvarchar(18),
      allowNull: true,
      defaultValue: null,
      primaryKey: false,
      autoIncrement: false,
      comment: null,
      field: "IsInitialized"
    },
    DatabaseVersion: {
      type: nvarchar(50),
      allowNull: true,
      defaultValue: null,
      primaryKey: false,
      autoIncrement: false,
      comment: null,
      field: "DatabaseVersion"
    },
    UpdateDate: {
      type: DataTypes.DATE,
      allowNull: true,
      defaultValue: null,
      primaryKey: false,
      autoIncrement: false,
      comment: null,
      field: "UpdateDate"
    },
    SystemConfig: {
      type: DataTypes.TEXT,
      allowNull: true,
      defaultValue: null,
      primaryKey: false,
      autoIncrement: false,
      comment: null,
      field: "SystemConfig"
    }
  };
  const options = {
    tableName: "siteserver_Config",
    comment: "",
    indexes: []
  };
  const SiteserverConfigModel = sequelize.define("siteserver_Config_model", attributes, options);
  return SiteserverConfigModel;
};